package com.travel.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.travel.dto.HotelOrderDto;
import com.travel.dto.RentCarOrderDto;
import com.travel.pojo.Order;

import java.util.HashMap;

/**
* @author rjq51
* @description 针对表【order】的数据库操作Service
* @createDate 2023-05-18 10:38:38
*/
public interface OrderService extends IService<Order> {

    Page<Order> queryHotelOrder(int i, int i1,int status, Integer userInfoFromRedis);
    Page<Order> queryRentCarOrder(int i, int i1, int status,Integer userInfoFromRedis);

    HashMap<String, String> generateOrder(HotelOrderDto hotelOrderDto, Integer userId);

    HashMap<String, String> generateHotelOrder(HotelOrderDto hotelOrderDto, Integer userId);
    HashMap<String, String> generateRentCarlOrder(RentCarOrderDto rentCarOrderDto, Integer userId);
}
